Return

Edit Resource: Capacity

Description

The Capacity attribute under EditResource defines the different values for the capacity of a resource when IsCapacityApplicable is set to "TRUE" .

Parameters

ParameterDescription
CapacityTypeOptions are either 'Resilient' or 'Consumable' or 'StateModes'.
MinCapacityPositive numerical values >0.
MaxCapacityPositive numerical values >0.
InitialCapacityA numerical value that is in between the range of MinCapacity and MaxCapacity.
MinCapacityLimitOptions are either 'Hard' or 'Soft'.
MaxCapacityLimitOptions are either 'Hard' or 'Soft'.
UnitsA string of text of the type of unit. An empty string is allowed.
ModeNamesA string of text of the mode names

Examples

The resource SSR is consumable and has a maximum capacity of 100MB, with initial capacity of 100MB.

PATCH api/resource/SSR

Body:

{

"Capacity" : {

"MinCapacity" : "0",

"MinCapacityLimit" : "Hard",

"MaxCapacity" : "100",

"MaxCapacityLimit" : "Soft",

"InitialCapacity" : "100",

"Units" : "Mbytes" }

}